//引入request因为里面封装了axios
import request from '@/utils/request'

export default{
    //1.生成统计数据
    createStatisData(day){
        return request({
            url: `/staservice/sta/registerCount/${day}`,
            method:'post'
        })
    },
    //2.图表展示
    getShowData(searchObj){
        return request({
            //后端传的是值,这里用对象来接收,可以用对象.值来取
            url:`/staservice/sta/showData/${searchObj.type}/${searchObj.begin}/${searchObj.end}`,
            method:'get'
        })
    }
}